#ifndef DIRECTXDEVICE_H
#define DIRECTXDEVICE_H

#include "DirectXEngine.h"

class DirectXDevice : public GraphicsDevice
{
	public:
		DirectXDevice (void);
		~DirectXDevice (void);

		BOOL Init (HINSTANCE hInst, LPCWSTR WinTitle, UINT ScrnWidth,
				   UINT ScrnHeight, UINT ClrDepth, BOOL Fullscreen);
		void BeginRendering (void);
		void EndRendering (void);
		void Clear (void);
		void SetClearColor (int Red, int Green, int Blue, int Alpha);

		void* GetDrawDevice (void);

	private:
		void InitD3D (void);
		void CleanD3D (void);

		LPDIRECT3D9 d3d;
		LPDIRECT3DDEVICE9 d3ddev;
		DWORD ClearColor;
};

#endif